﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace gKodes.HexView.Sample
{
    public partial class FOptions : Form
    {
        private FMain fMain;

        public FOptions(FMain fMain)
        {
            InitializeComponent();
            this.fMain = fMain;
        }

        private void bFChange_Click(object sender, EventArgs e)
        {
            this.fDMain.Font = this.fMain.hVMain.Font;
            if(this.fDMain.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                this.fMain.hVMain.Font = this.fDMain.Font;
            this.tBFont.Text = this.fMain.hVMain.Font.ToString();
        }

        private void FOptions_Shown(object sender, EventArgs e)
        {
            this.tBFont.Text = this.fMain.hVMain.Font.ToString();
        }
    }
}
